  class Window_PlayerBattler
    attr_reader   :actor
    attr_reader   :index
    attr_reader   :_hp_bar
    attr_reader   :_sp_bar
    def initialize(actor, index)
      @actor = actor
      @index = index
      @_hp_bar = Sprite_Bar.new
      @_sp_bar = Sprite_Bar.new
      @_hp_bar.set_actor_state_bar(1, index, actor)
      @_sp_bar.set_actor_state_bar(2, index, actor)
      refresh
    end
    def refresh
      @_hp_bar.refresh(@actor.hp, @actor.maxhp)
      @_sp_bar.refresh(@actor.sp, @actor.maxsp)
    end
    def dispose
      @_hp_bar.dispose
      @_sp_bar.dispose
    end
  end
